<?php

namespace App\Http\Requests\Home;

use App\Http\Requests\Request;

class UpdateemailRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */

    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            //
        'uemail' => 'required|unique:user',
        'code'=>'required',
        ];
    }

    public function messages()
    {
         return [
            'uemail.required'=>'邮箱必填',
            'uphone.unique'=>'邮箱已存在',
            'code.required'=>'密码必填'
            ];
    }
}
